package com.zxh.blog.dao;

import com.zxh.blog.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
	User selectUserByUserName(String userName);

	void updateUser(User user);

	Integer addUser(User user);

	void deleteByIds(int[] ids);

	List<User> selectByList();

	void delRoleByUserId(int userId);

	Integer insertUserRole(@Param("userId") int userId, @Param("roleId") int roleId);
}
